package org.example.multi_sys_consist.constant;

public enum TransactionJobType {
    /**
     * 更新待办
     */
    UPDATE_TODO,
    /**
     * 创建财务日志
     */
    CREATE_FINANCE_LOG,
    /**
     * 类型4
     */
    PUSH_FINANCE_LOG;

    public static TransactionJobType parse(String type) {
        for (TransactionJobType transactionJobType : TransactionJobType.values()) {
            if (transactionJobType.name().equals(type)) {
                return transactionJobType;
            }
        }
        return null;
    }
}
